<!--
 * @Author: gy
 * @Date: 2020-07-02 10:26:18
 * @LastEditors: gy
 * @LastEditTime: 2020-07-03 11:30:03
-->
<!-- 
material_atype_name	是	string	类型名称
material_atype_desc	否	string	类型描述
remark	否	string	备注
-->
<!--  -->
<template>
    <div>
        <el-form ref="form" :model="form" :rules="rules">
            <el-form-item label="类型名称" prop="material_atype_name">
                <el-input v-model="form.material_atype_name"></el-input>
            </el-form-item>
            <el-form-item label="图号" prop="material_atype_desc">
                <el-input v-model="form.material_atype_desc"></el-input>
            </el-form-item>
            <el-form-item label="备注">
                <el-input type="textarea" v-model="form.remark"></el-input>
            </el-form-item>
        </el-form>
    </div>
</template>

<script>
export default {
    props: {},
    data() {
        return {
            form: {
                material_atype_name: "",
                material_atype_desc: "",
                remark: ""
            },
            rules: {
                material_atype_name: [
                    {
                        required: true,
                        message: "请输入类型名称",
                        trigger: "blur"
                    }
                ]
            },
            checkRepeatParam: {
                url: "/material/api/MesMaterialAType/CheckMesMaterialATypeNameUnique",
                param: "material_atype_name",
                method: "get"
            }
        };
    },

    components: {},

    methods: {}
};
</script>
<style lang="scss" scoped></style>
